package com.zbkj.common.model.monitor;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 监控设备绑定关系表
 * </p>
 *
 * @author dazongzi
 * @since 2025-06-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("zfb_monitor_device_bind")
@ApiModel(value="ZfbMonitorDeviceBind对象", description="监控设备绑定关系表")
public class ZfbMonitorDeviceBind implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "监控设备ID")
    private Integer meid;

    @ApiModelProperty(value = "设备ID")
    private Long deviceId;

    @ApiModelProperty(value = "创建时间")
    private Date createdAt;

    @ApiModelProperty(value = "更新时间")
    private Date updatedAt;

    @ApiModelProperty(value = "是否删除:0否,1是")
    private Boolean isDeleted;

    @ApiModelProperty(value = "绑定人ID")
    private Integer bindUid;

    @ApiModelProperty(value = "最新激活时间")
    private Date latestActiveTime;

    @ApiModelProperty(value = "绑定时间")
    private Date bindTime;

    @ApiModelProperty(value = "设备license")
    @TableField(exist = false)
    private String license;
}
